// PointClassTest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

class point
{
private:
	int x, y;

public:
	int a,b;

public:
	void setX(int ss) {x = ss + 10;};
private:
	void setY(int yy) {y = yy - 20;};

public:
	void TestSetX(int m);

};

void point::TestSetX(int m)
{
	this->setX(m);
}


int main(int argc, char* argv[])
{
	point t,k, *pt;

	pt = &t;

	pt->b = 10;

	k.setX(10);


	pt->TestSetX(10);

	t.a = 10;
	t.b = 20;

//	t.x = 10;

	t.setX(10);

//	t.setY(20);


	printf("Hello World!\n");
	return 0;
}

